<template>
  <div>
    <el-dialog
      title="创建发货"
      :visible.sync="dialogTableVisible"
      width="1000px"
      top="30px"
      class="ship-found-wrap"
    >
      <el-radio-group v-model="radio" size="small">
        <el-radio-button :label="item" v-for="(item,index) in cities" :key="index"></el-radio-button>
      </el-radio-group>
      <eda-yun v-if="radio == '易达云'" @close="close"></eda-yun>
      <amazon v-else-if="radio == '亚马逊'"  @close="close"></amazon>
      <winit v-else  @close="close"></winit>
    </el-dialog> 
  </div>
</template>
<script>
import edaYun from './ship-edayun'
import amazon from './ship-amazon'
import winit from './ship-winit'
export default {
  data() { 
    return {
      dialogTableVisible: false,
      cities: ["易达云", "万邑通", "亚马逊"],
      radio: "易达云",
    };
  },
  methods: {
    _show() {
      this.dialogTableVisible = true;
    },
    close(){
      this.dialogTableVisible = false;
      this.$emit("load");
    }
  },
  components: {
      edaYun,
      amazon,
      winit
  }
};
</script>
<style lang="stylus" scoped>
.el-radio-group{
  margin-bottom: 15px;
}
</style>
<style>
.ship-found-wrap .el-dialog__body {
  padding: 10px;
}
</style>
